From 7c450dff6425e93851313e36acf1acb0c96f9d94 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Fri, 9 Mar 2018 17:46:53 -0500 Subject: [PATCH] Remove "dash" case in preprocessToObj This was introduced in 2877402 and removed in 186a182 Change-Id: Ibfa1ae1597bfc50ae6ea49402c7966ca042f12e5 --- includes/parser/Preprocessor_DOM.php | 3 --- includes/parser/Preprocessor_Hash.php | 3 --- 2 files changed, 6 deletions(-) diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index 81243f3c6d..09ca38a626 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -794,9 +794,6 @@ class Preprocessor_DOM extends Preprocessor { $stack->getCurrentPart()->eqpos = strlen( $accum ); $accum .= '='; ++$i; - } elseif ( $found == 'dash' ) { - $accum .= '-'; - ++$i; } } diff --git a/includes/parser/Preprocessor_Hash.php b/includes/parser/Preprocessor_Hash.php index c4c0c5ada4..7dbf9b1ad7 100644 --- a/includes/parser/Preprocessor_Hash.php +++ b/includes/parser/Preprocessor_Hash.php @@ -744,9 +744,6 @@ class Preprocessor_Hash extends Preprocessor { $accum[] = [ 'equals', [ '=' ] ]; $stack->getCurrentPart()->eqpos = count( $accum ) - 1; ++$i; - } elseif ( $found == 'dash' ) { - self::addLiteral( $accum, '-' ); - ++$i; } } -- 2.20.1